Own Company Interview Question

Some coding questions in first interview. Completely random questions in the second interview.