Technical interview.
1. Given array of numbers find the number who has the most occurrences. If there 2 numbers like that then take the greater of the 2.
2. Given a map function that gets a callback and an array, use generics in Typescript to solve it for many cases. Const map= (f: (val: M) =>T, arr: T[]) => arr.map((x)=>f(x))(