the question is attached below 4