Frage im Vorstellungsgespräch bei Full Visibility

How did you mentally deconstruct the larger problem into this bite-sized code sample?