Solved For Each Function Below A Is The Given Function

Solved For Each Function Below A Is The Given Function