Solutions by Kaushik Tunuguntla.