Assignment 2: Reconstructing Inputs from memory buffer