Flatten a deeply nested array of numbers and return most frequent number with its count | Array Operations | javascript Interview Questions | NextRound.in