KirubaKaran's submissions for second problem