How To Push Function Into Array Methods In Typescript Interview