coding challenge for looppulse