For the given reaction:

'P' is [2024]
(2)

Acidic potassium permanganate oxidises alkenes to ketones or acids depending upon the nature of the alkene and the experimental conditions. In the given reaction, major product is carboxylic acid.