Netflix interview question

LEecode medium of 3 bin stack and easy sorting.