Added solution to question 3 for A7
Added solution for question 4 of A7
Simplified question 4 solution for A7