Sollicitatievraag bij PharmEasy

simple time complexity question based on while and for loops