Garmin Interview Question

Write some basic Arduino code for X outcome.