Anyone please provide code for this question as well as intution and approach how to do this I was not able to do any of the question