DRW Interview Question

one is about knn and the other one is solving a math question by coding. t