Cirrus Logic Interview Question

write a code to extract input and outputs