Own Company interview question

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