Usage/Instruction
Settled down with this solution using ternary operators.
Updated test cases.