Group Array By Field Javascript Interview Bit