McKinsey & Company Interview Question

Programming questions in Python: Bubble sort; Write a basic function according to given situations(nested loop and if-else involved) etc.