typescript assigning parameter is forbidden

Solutions on MaxInterview for typescript assigning parameter is forbidden by the best coders in the world