site:geeksforgeeks.org encoder and decoder truth table - Search