Based on a simple logic circuit consisting of OR and AND gates.
Utilise first 4 switches as binary input from 0-15.