Vanguard interview question

how to optimize your api?