Toptal Interview Question

Explain what is a Boundary Value Analysis and Equivalence Partitioning and give a simple example?