Match Case Python Multiple Returns Javascript Interview Question