OYO Interview Question

Maximum sum such that no two elements are adjacent