Who's in First Place?

Published by Mubashir Hassan in

Create a function that takes a string road and returns the car that's in first place. The road will be made of "=", and cars will be represented by letters in the alphabet.

Examples

first_place("====b===O===e===U=A==") ➞ "A"

first_place("e==B=Fe") ➞ "e"

first_place("proeNeoOJGnfl") ➞ "l"

Notes

Return "None" if there are no cars on the road or if there is no road.

Watch a quick demo on how Edabit works.