• + 4 comments

    @mialkin - although your solution passes all test cases, it is actually incorrect. For the problem sample input, your solution would actually be:

    C1 Monika 1 1 1 2

    C2 Samantha 1 1 2 2

    The correct solution to the sample input should be:

    C1 Monika 1 2 1 2

    C2 Samantha 1 1 2 2

    Company C1 founded by Monika should have 2 senior managers (SM1 and SM2).