hariprakash12's submissions for second problem