Solution for Problem B
Solution for Problem B