Visier Interview Question

Question related to algorithm runtime