For question 2, 3, 4 adding example input, output