Arduino Water Pump

neat homework assignment. got any idea how to do it ?