AbbVie Interview Question

How I approached a challenge