Add solution for three questions