This page contains a simple specification for Equivalence Partitioning and Boundary Value Analysis test design techniques, along with several different implementations of this specification. Implementation 1 is correct, others - not so much. Your goal is to find ON, OFF, OUT and IN values that will find bugs in all of them.