Thirumalesh's submissions for second problem