LeetCode
Ternary Expression Parser
Click
here
for an explanation.