Tri-Value Partition — Coding problem | OneNoughtOne