Typescript Find Element In Array By Gfg Ide Java