This challenge has a beautiful one-liner answer.
"A hacker practices on HackerRank until getting to a rating of O(1) read as (Oh-one)"
Call the method
until control structure.
until is the logical equivalent of
while not <condition>
or the beautiful one-liner
<code> until <condition>