rahul_jayakrishnan's submissions for second problem