Shakudo interview question

Algorithm Questions for the coding round