Robert Bosch interview question

Index and partition data solution