Toshiba Interview Question

Two DSA Question 1. Convert Binary number to decimal 2. Implementation of stack