Match Case Python Multiple Returns Javascript Interview