Kapilash's submissions for second problem