Microsoft Interview Question

1. Moore voting algorithm 2. Create a calculator which can solve two linear equations having 2 variables