This code will do the job…
<?php
add_action('pre_get_posts', 'filter_posts_list');
function filter_posts_list($query)
{
//$pagenow holds the name of the current page being viewed, we want to run our code only on edit.php (posts list)
global $pagenow;
//If the 'Editor' is logged in, exclude 'Admin's posts
if(current_user_can('editor') && ('edit.php' == $pagenow))
{
//global $query's set() method for excluding admin's posts
$query->set('author', '-1');
}
}
For a detailed explanation Read Here.