LogicManager Interview Question

Short word problem