sree123's submissions for second problem